import * as api from '@/api/categoryApi'

export const getCateDataAction =() => async dispatch => {
    let ret = await api.getCateDataApi() 
    let { category,material } = ret.data
    dispatch({
        type:'cookbook_addCategory',
        data:category
    })
    dispatch({
        type:'cookbook_addMaterial',
        data:material
    })
}